package com.hly.musicbackground.exception;

import com.hly.musicbackground.result.Code;

public class TokenAuthExpiredException extends RuntimeException {
    private Integer code;

    public TokenAuthExpiredException(){
        super("权限不足");
        this.code = Code.TOKEN_AUTH_ERR;
    }
    public TokenAuthExpiredException(String msg){
        super(msg);
        this.code = Code.TOKEN_AUTH_ERR;
    }

    public TokenAuthExpiredException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public TokenAuthExpiredException(Integer code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }
}
